package com.polytech.diploma.StatAccumulator.Comparator;

import java.util.Comparator;
import com.polytech.diploma.OracleStat.SQLStatData;

public class DurationStatComparator 
				extends StatComparator
				implements Comparator<SQLStatData>
{
	@Override
	public int compare(SQLStatData statData1, SQLStatData statData2) {
		
		return compareWithConfidenceRange(statData1.getElapsedTime(),
				statData2.getElapsedTime(),
				statData1.getUpdateFrequency(),
				statData2.getUpdateFrequency());
	}

}
